<html>
<head>
<title>MapXtreme Java JSP Custom Tag Sample</title>
<%@ taglib uri="/mapinfo" prefix="mapinfo" %>
<%@ taglib uri="/mapxtreme" prefix="mapxtreme" %>
<%-- Remove comment to use MapMarker
<%@ taglib uri="/mapmarker" prefix="mapmarker" %>
--%>
<%-- Remove comment to use Routing   
<%@ taglib uri="/routing" prefix="routing" %>
--%>
<%@ page
	language = "java"
	contentType = "text/html;charset=UTF-8"
%>
<mapinfo:mapapp name="frames">
</head>
<body>


<mapinfo:toolbar>
	<table border=0 width="100%" cellspacing=0 cellpadding=3 bgcolor='#C1C1C1'><tr><td width=5>&nbsp;</td>
	<td><mapxtreme:opentool /></td>
	<td><mapxtreme:savetool /></td>
	<td><mapxtreme:printpreviewtool /></td>
	<td><mapxtreme:recenter /></td>
	<td><mapxtreme:zoomin /></td>
	<td><mapxtreme:zoomout /></td>
	<td><mapxtreme:zoomnumerictool /></td>
	<td><mapxtreme:viewentirelayertool /></td>
	<td><mapxtreme:themetool /></td>
	<td><mapxtreme:legendtool /></td>
<%-- Remove comment to use MapMarker
	<td><mapmarker:geocodetool /></td>
--%>
<%-- Remove comment to use Routing
	<td><routing:routingtool /></td>
--%>
	<td><mapxtreme:selectiontool /></td>
	<td><mapxtreme:unselecttool /></td>
	<td><mapxtreme:selectioninfotool /></td>
	<td><mapxtreme:infotool /></td>
	<td><mapxtreme:projectiontool /></td>
	<td width='99%'>&nbsp;</td>
	<td align=right><mapinfo:tool name="mapxtreme" img="images/icon32.gif" page="http://www.mapinfo.com/mapxtremejava" alt="MapXtreme Java" width="23" height="23" /></td>
	</tr></table>
</mapinfo:toolbar>

<center><mapxtreme:resizableMap /></center>

<!-- Update the status bar -->
<form name='refreshstatus' action='status.jsp' target='status'><input type=hidden name=refresh value='<%= Math.random() %>'></form>
<script language='JavaScript'>
document.refreshstatus.submit();
</script>

<% if(request.getParameter("fromoverviewmap")==null) { /* Don't update the overview map if it refreshed the map */ %>
	<!-- Update the overview map -->
	<form name='refreshoverviewmap' action='overviewmap.jsp' target='overviewmap'><input type=hidden name=refresh value='<%= Math.random() %>'></form>
	<script language="JavaScript">
	if(top.overviewmap) {
		document.refreshoverviewmap.submit();
	}
	</script>
<% } %>

<% if(request.getParameter("fromlayercontrol")==null) { /* Don't update the layer control if it refreshed the map */ %>
	<!-- Update the layer control -->
	<form name='refreshlayercontrol' action='layercontrol.jsp' target='layercontrol'><input type=hidden name=refresh value='<%= Math.random() %>'></form>
	<script language="JavaScript">
	if(top.layercontrol) {
		document.refreshlayercontrol.submit();
	}
	</script>
<% } %>


</body>
</mapinfo:mapapp>
</html>
<script>
changeSize();
</script>